package model;

import util.FormateDate;

/**
 * TError entity. @author MyEclipse Persistence Tools
 */

public class TError implements java.io.Serializable {

	// Fields

	private Integer errorid;
	private String errorcontent;
	private String time;
	private String userid;
	private Integer transportid;

	// Constructors

	/** default constructor */
	public TError() {
	}

	/** minimal constructor */
	public TError(String userid, Integer transportid) {
		this.userid = userid;
		this.transportid = transportid;
	}

	/** full constructor */
	public TError(String errorcontent, String time, String userid,
			Integer transportid) {
		this.errorcontent = errorcontent;
		this.time = time;
		this.userid = userid;
		this.transportid = transportid;
	}

	// Property accessors

	public Integer getErrorid() {
		return this.errorid;
	}

	public void setErrorid(Integer errorid) {
		this.errorid = errorid;
	}

	public String getErrorcontent() {
		return this.errorcontent;
	}

	public void setErrorcontent(String errorcontent) {
		this.errorcontent = errorcontent;
	}

	public String getTime() {
		return FormateDate.datetimeFormat(this.time);
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Integer getTransportid() {
		return this.transportid;
	}

	public void setTransportid(Integer transportid) {
		this.transportid = transportid;
	}

}